import http from '@/utils/http' // 导入http中创建的axios实例

export default {
    // 加载文章评论
    httpArticleCommentLoad(articleId) {
        return http.get('/article/comment/load', {
            params: { articleId }
        })
    },
    // 文章列表
    httpArticleList(params) {
        return http.get('/article/list', {
            params
        })
    },
    // 文章详情
    httpArticlDetail(id) {
        return http.get('/article/detail', {
            params: {
                id
            }
        })
    },
    // 搜索
    httpArticlSearch(key) {
        return http.get(`/article/search/?key=${key}`)
    },
}
